Replace some "assert_throws(FooError(), stuff)" calls with assert_throws_js. (#21378) This diff was generated by running: find . -type f -print0 | xargs -0 perl -pi -e 'BEGIN { $/ = undef; } s/assert_throws\(([ \n]*)([A-Za-z]*Error) *\(\) *(, *.)/assert_throws_js(\1\2\3/gs' and then: 1) Manually editing dom/nodes/Element-matches.js to get the TypeError constructor from the element's global. 2) Manually editing dom/nodes/ParentNode-querySelector-All.js to get the TypeError constructor from root's global, whether "root" is a Document or some other kind of node. Co-authored-by: Boris Zbarsky <bzbarsky@mit.edu> 
diff --git a/entries-api/filesystemfileentry-file-manual.html b/entries-api/filesystemfileentry-file-manual.html index d6c62f3..7ac29c0 100644 --- a/entries-api/filesystemfileentry-file-manual.html +++ b/entries-api/filesystemfileentry-file-manual.html 
@@ -12,7 +12,7 @@  assert_idl_attribute(entry, 'file', 'FileSystemFileEntry has a file() method');  assert_equals(typeof entry.file, 'function', 'FileSystemFileEntry has a file() method');   - assert_throws(TypeError(), () => entry.file(), 'file() has a required argument'); + assert_throws_js(TypeError, () => entry.file(), 'file() has a required argument');  entry.file(t.step_func(file => {    assert_class_string(file, 'File', 'file() should yield a File');